namespace ReverseString
{
    public class Solution
    {
        public string ReverseString(string s)
        {
            var str = s.ToCharArray();
            for (int i = 0, j = str.Length - 1; i < j; i++, j--)
            {
                var temp = str[i];
                str[i] = str[j];
                str[j] = s[i];
            }

            return new string(str);
        }
    }
}